package com.emmmya.ocs.modules.system.serviceImpl;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.emmmya.ocs.common.base.BaseDao;
import com.emmmya.ocs.modules.system.dao.DictDataDao;
import com.emmmya.ocs.modules.system.dao.mapper.DictDataMapper;
import com.emmmya.ocs.modules.system.entity.DictData;
import com.emmmya.ocs.modules.system.service.DictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @description:
 * @author: 咕噜肉IT小店-黑医
 * @createDate: 2021-02-20
 * @version: 1.0
 */
@Service
public class DictDataServiceImpl implements DictDataService {
    /**
     * 字典数据的数据层
     */
    @Autowired
    private DictDataDao dictDataDao;
    @Autowired
    private DictDataMapper dictDataMapper;

    @Override
    public BaseDao<DictData, Long> getRepository() {
        return dictDataDao;
    }

    @Override
    public void getDataListByPage(IPage<DictData> page, Wrapper<DictData> wrapper){
        dictDataMapper.selectPage(page,wrapper);
    }

}
